home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 April: Mac OS SDK / Dev.CD Apr 00 SDK1.toast / Development Kits / Mac OS / Installer SDK 1.2.3 / Upgrader 1.2.3 & Engines / Upgrader 1.2.3 / Plug-in Examples / Simple App Launcher Plug-in / Plug-in Sources / SimpleAppLauncher.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-23  |  2.1 KB  |  101 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        SimpleAppLauncher.h
  3. */
  4.  
  5. #ifndef __SAL_PLUGIN__
  6. #define __SAL_PLUGIN__
  7.  
  8. #define    kDriveSetupAliasRsrcID        3500        // Use #define so that Rez can use them as well
  9. #define    kDiskFirstAidpAliasRsrcID    3600
  10. #define    kHDSetupAliasRsrcID            3700
  11.  
  12. #define    kValidDriveSetupMachinesResID    3500    // List of valid/invalid machine gestalt ID's for 
  13.                                                 // DriveSetup application.
  14. #define    kValidMachinesResType    'valm'
  15. #define kInvalidMachinesResType    'invm'
  16. #define kSALPrefsResType        'slpr'            // SAL plugin preference resource type.
  17. #define kResIDResType            'paul'
  18. #ifndef REZ                                        // Don't want Rez to see the rest of the file
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23.  
  24. #include <Types.h>
  25. #include <Events.h>
  26. #include <TextEdit.h>
  27.  
  28. #include "UpgraderPlugin.h"
  29.  
  30.  
  31. enum                                // Panel DITL resource ID's
  32.     {
  33.     kSALPanelRsrcID     = 3500
  34.     };
  35.  
  36.  
  37.  
  38. enum                                // SAL panel items    
  39.     {
  40.     kContinueButton = 1,
  41.     kGoBackButton,
  42.     kBackgroundPICTitem,
  43.     kHelpButton = 6,
  44.     kInstallStepsTextItem,
  45.     kTitleTextItem,
  46.     kLaunchCheckBox = 9
  47.     };
  48.  
  49.  
  50. enum                                // Help panel items
  51.     {
  52.     kHelpCloseButton = 1,
  53.     kHelpPrintButton,
  54.     kHelpSaveButton
  55.     };
  56.  
  57.  
  58. enum                                // Return codes
  59.     {
  60.     kContinueInstallerSetup,
  61.     kQuitInstallerNow
  62.     };
  63.  
  64. enum                                // Bit masks for the 'flags' field of the SALPrefs struct
  65.     {
  66.     kMainTextInFile         = 0x8000,
  67.     kHelpTextInFile            = 0x4000,
  68.     kKeepApplicationOpen    = 0x2000,
  69.     kShowLaunchCheckbox        = 0x1000,
  70.     kPrecheckLaunchCheckbox    = 0x0800
  71.     };
  72.     
  73. // Typedefs
  74.  
  75.     
  76. typedef struct                        // SAL plugin preference resource struture
  77.     {
  78.     UInt16    format;
  79.     UInt16    flags;
  80.     SInt16    mainTextReferenceID;
  81.     SInt16    helpTextReferenceID;
  82.     SInt16    basePICTResID;
  83.     SInt16    backgroundPICTResID;
  84.     SInt16    SALSTRListRsrsID;
  85.     SInt16    applicationflrfID;
  86.     SInt16    documentflrfID;
  87.     
  88.     } SALPrefs, *SALPrefsPtr, **SALPrefsHandle;
  89.     
  90. // P R O T O T Y P E S
  91.  
  92. void     DisplayHelp(void);
  93. Boolean    HandleEventForHelpPanel(EventRecord *inEvent);
  94. short    GetLineHeight(TEHandle theTE, short lineNum);
  95. void    HandleScroller( PanelPtr thePanel, Point pt, short textItem, short scrollerItem);
  96.  
  97. #endif // REZ
  98. #ifdef __cplusplus
  99. }
  100. #endif    // __cplusplus
  101. #endif    // __SAL_PLUGIN__